<%-- 
    Document   : carousel-giay
    Created on : Aug 22, 2011, 1:20:51 PM
    Author     : NhatHuy
--%>

<%@page import="pojo.GiayPOJO"%>
<%@page import="dao.GiayDAO"%>
<%@page import="java.util.ArrayList"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%    
    //Lấy danh sách giày.
    ArrayList<GiayPOJO> dmGiay = (ArrayList<GiayPOJO>)request.getAttribute("dsGiay");
    int n = 0;
    if (dmGiay.size() >= 10){
        n = 10;
    }
%>

<div class="jMyCarousel">
    <ul>
        <%            
            for (int i=0; i<n; i++){
                GiayPOJO giay = dmGiay.get(i);
        %>
        <li><a href="<%=request.getContextPath()%>/ChiTietGiayController?Action=View&GioiTinh=<%=giay.getGioiTinh()%>&MaLoaiGiay=<%=giay.getMaLoaiGiay()%>&MaGiay=<%=giay.getMaGiay()%>"><img src="<%=request.getContextPath()%>/client/<%=giay.getHinhAnh()%>" width="140" height="140"></a></li>
        <%            
         }  
        %>
  </ul>
</div>
<div class="clear"></div>
